package yl.hs.bmipfull.pojo.vehiclemanage;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 吴高丰
 * @apiNote 车辆维修记录实体类
 * @since 2022年08月01日 14时13分11秒
 */
@DBTable(disName = "车辆维修记录", mapCode = "truck_repair")
public class TruckRepairEntity extends BaseEntity {

    /**
     * 主键ID
     */
    @Nullable
    private Long id;
    /**
     * 维修编号
     */
    @DBField(disName = "车辆维修记录编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "WXXX")
    private String sn;
    /**
     * 车牌号
     */
    @DBField(disName = "车牌号", mapCode = "truckplate")
    private String truckplate;
    /**
     * 车辆自编号
     */
    @DBField(disName = "车辆自编号", mapCode = "trucksn")
    private String trucksn;
    /**
     * 维修项目
     */
    @DBField(disName = "维修项目", mapCode = "maintenanceItems")
    private String maintenanceItems;
    /**
     * 维修人
     */
    @DBField(disName = "维修人", mapCode = "maintainer")
    private String maintainer;
    /**
     * 司机
     */
    @DBField(disName = "司机", mapCode = "driver")
    private String driver;
    /**
     * 维修人门店
     */
    @DBField(disName = "维修人门店", mapCode = "maintenancestore")
    private String maintenancestore;
    /**
     * 维修凭证
     */
    @DBField(disName = "维修凭证", mapCode = "maintenancevoucher")
    private String maintenancevoucher;
    /**
     * 维修费用
     */
    @DBField(disName = "维修费用", mapCode = "maintenancecosts")
    private BigDecimal maintenancecosts;
    /**
     * 维修时间
     */
    @DBField(disName = "维修时间", mapCode = "maintenancetime")
    private Date maintenancetime;
    /**
     * 备注
     */
    @DBField(disName = "备注", mapCode = "remark")
    private String remark;
    /**
     * 状态
     */
    @DBField(disName = "状态", mapCode = "state")
    private int state;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getSn() {
        return this.sn;
    }

    public void setTruckplate(String truckplate) {
        this.truckplate = truckplate;
    }

    public String getTruckplate() {
        return this.truckplate;
    }

    public void setTrucksn(String trucksn) {
        this.trucksn = trucksn;
    }

    public String getTrucksn() {
        return this.trucksn;
    }

    public void setMaintenanceItems(String maintenanceItems) {
        this.maintenanceItems = maintenanceItems;
    }

    public String getMaintenanceItems() {
        return this.maintenanceItems;
    }

    public void setMaintainer(String maintainer) {
        this.maintainer = maintainer;
    }

    public String getMaintainer() {
        return this.maintainer;
    }

    public void setMaintenancecosts(BigDecimal maintenancecosts) {
        this.maintenancecosts = maintenancecosts;
    }

    public BigDecimal getMaintenancecosts() {
        return this.maintenancecosts;
    }

    public void setMaintenancetime(Date maintenancetime) {
        this.maintenancetime = maintenancetime;
    }

    public Date getMaintenancetime() {
        return this.maintenancetime;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getState() {
        return this.state;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getMaintenancestore() {
        return maintenancestore;
    }

    public void setMaintenancestore(String maintenancestore) {
        this.maintenancestore = maintenancestore;
    }

    public String getMaintenancevoucher() {
        return maintenancevoucher;
    }

    public void setMaintenancevoucher(String maintenancevoucher) {
        this.maintenancevoucher = maintenancevoucher;
    }
}